<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home TabView</title>
<link rel="stylesheet" href="content/upg.css" />
<link rel="stylesheet" href="js/jquery.mobile-1.0.min.css" />
<link rel="stylesheet" type="text/css" href="js/jquery.mobile.datebox.min.css" />
<link href="js/jquery-mobile.css" type="text/css" rel="stylesheet" />
<link href="js/photoswipe.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="js/klass.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.0.min.js"></script>
<script type="text/javascript" src="js/code.photoswipe-3.0.4.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile.datebox.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile.datebox.js"></script>
<script type="text/javascript" src="js/upg.js"></script>
<script src="js/phonegap.js"></script>

<script type="text/javascript">

window.callFragmentPlugin = function(str, callback) {
	cordova.exec(callback, pluginFailed, "CallFragmentPlugin", "call", [ str ]);
};

var pluginFailed = function(message) {
	alert("failed>>" + message);
}

$(function() {
	init();
});

var init = function() {
	console.log("phonegap init!!");
	document.addEventListener("deviceready", onDeviceReady, true);
}

var onDeviceReady = function() {
	
	console.log("deviceready event fired");

	window.callActivityPlugin("com.example.activity.MyActivity" , function(echoValue) {
		console.log("callActivityPlugin echo>>");
	});
};

</script>
</head>
<body>
	<div data-role="page">
		<div data-role="content">
			<div class="ui-grid-a">
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/1.jpg" />
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/2.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/3.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/4.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/5.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/6.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/7.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/8.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/gallery/full/9.jpg"/>
				</div>
				<div class="ui-block-b">
					<img id="image-1" alt="" src="content/main/a.jpg"/>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
